//
//  ChatHelper.m
//  zhixinApp
//
//  Created by zhiguanzhl on 2017/12/4.
//  Copyright © 2017年 zhiguanzhl. All rights reserved.
//

#import "ChatHelper.h"
#import <Foundation/Foundation.h>

static ChatHelper *helper = nil;
@implementation ChatHelper

+ (instancetype)shareHelper
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        helper = [[ChatHelper alloc] init];
    });
    return helper;
}

- (id)init
{
    self = [super init];
    if (self) {
        [self initHelper];
    }
    return self;
}
- (void)initHelper
{
    [[EMClient sharedClient] addDelegate:self delegateQueue:nil];
    [[EMClient sharedClient] addMultiDevicesDelegate:self delegateQueue:nil];
}

// 网络状态变化回调
- (void)didConnectionStateChanged:(EMConnectionState)connectionState
{
//    [self.mainVC networkChanged:connectionState];
}


@end
